package com.boot2523.myredis.r1;

import redis.clients.jedis.Jedis;

public class R1 {
    public static void main(String[] args) {
        //赋值和取值操作
        Jedis j=new Jedis();
        //赋值h
        j.set("a",String.valueOf(100));//赋值
        j.setnx("age","25");//缓存中有，不修改
        System.out.println(j.get("a"));
        System.out.println(j.get("age"));
        System.out.println(j.get("b"));//null
    }
}
